package cn.wolfcode.business.mapper;


import cn.wolfcode.business.domain.BusAudit;
import cn.wolfcode.business.domain.BusServiceItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface BusServiceItemMapper {

    List<BusServiceItem> getList(BusServiceItem busServiceItem);

    BusServiceItem getBusServiceItem(Long id);

    Integer add(BusServiceItem busServiceItem);

    Integer update(BusServiceItem busServiceItem);

    Integer puton(@Param("id") Long id, @Param("saleStatus") Integer saleStatus);

    Integer putoff(@Param("id") Long id, @Param("salestatus") Integer salestatusOn);


    Integer updateStatus(@Param("serviceItemId") Long serviceItemId, @Param("auditstatusAuditing") Integer auditstatusAuditing);

    Integer updateAuditStatus(@Param("id") Long id, @Param("auditstatusInit") Integer auditstatusInit);

}
